/**
 * Created by Administrator on 2017/10/17.
 */
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var schema = new Schema({
    commentCount:Number,
    categoryId:ObjectId,
    name:String,
    price:Number,
    stock:Number,
    brand:String,
    info:String,
    img:[]
})

schema.plugin(mongoosePaginate);
var Goods=mongoose.model('Goods',schema,'goods');
module.exports=Goods;
